﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script src="/Style/JS/Aries.Loader.js"></script>
    <link href="/Style/CSS/style.css" rel="stylesheet" />
</head>
<body>

    <div class="cont-box">
        <div class="cont-box-tit">
            <h3>Demo_TestA</h3>
            <a class="arrows hover"></a>
        </div>
        <div class="cont-box-in">
            <div class="cont-box-form">
                <div class="line">
                    <div class="short">
                        <label><em>*</em>（单选）F6：</label>
                        <input id="F6" name="F6" dialog="Demo_TestA"  />
                    </div>
                    <div class="short">
                        <label><em>*</em>（多选）F7：</label>
                        <input name="F7" dialog="Demo_TestA" multiple="true" onlytext="true" />
                    </div>
                    <div class="short">
                        <label><em>*</em>（可编辑）F8：</label>
                        <input name="F8" dialog="Demo_TestA" multiple="true" editable="true" />
                    </div>
                </div>
                <form>
                    <div class="line">
                        <div class="short">
                            <label><em>*</em>（填充）F1：</label>
                            <input name="F1" />
                        </div>
                        <div class="short">
                            <label><em>*</em>（填充）F3：</label>
                            <input name="F3" /><!--<span name="F3"></span>-->
                        </div>
                        <div class="short">
                            <label><em>*</em>（填充）F4：</label>
                            <input name="F4" /><!--<label name="F4"></label>-->
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script>
            //追加固定的过滤条件。
            $("input[name = 'F6']").attr("options","{defaultWhere: [{ name: 'F1', pattern: 'like', value: '1' }]}");
            //选择之后事件。
            AR.Combobox.onAfterExecute = function (type, $input, backPara) {
                if (type == "dialog") {
                    if (!$input.attr("mutiple")) //单选时{
                        AR.Form.$target.form("load", backPara.datas);
                    //AR.Form.$target.toView();
                }
            }

        </script>
</body>
</html>
